package com.uliky.shouyiLibrary.auth.feign;

import com.uliky.common.utils.R;
import com.uliky.shouyiLibrary.auth.vo.SocialUser;
import com.uliky.shouyiLibrary.auth.vo.UserLoginVo;
import com.uliky.shouyiLibrary.auth.vo.UserRegistVo;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

@FeignClient("shouyiLibrary-member")
public interface MemberFeignService {
    @PostMapping("/member/member/regist")
     R regist(@RequestBody UserRegistVo vo);
    @PostMapping("/member/member/login")
    R login(@RequestBody UserLoginVo vo);
    @PostMapping("/member/member/oauth2/login")
    R oauthLogin(@RequestBody SocialUser socialUser) throws Exception;
}
